package admin

import (
	"context"
	"server/internal/service"

	"server/api/admin/lesson"
)

func (c *ControllerLesson) CategoryDelete(ctx context.Context, req *lesson.CategoryDeleteReq) (res *lesson.CategoryDeleteRes, err error) {
	res = new(lesson.CategoryDeleteRes)
	res.Result, err = service.LessonCategory().DeleteByID(ctx, req.ID)
	return
}
